var cakeXDev=new JSER.App('desktop');

cakeXDev.storage.add({
	name: 'user',
	controller: 'users',
	title: 'Usuário',
	items: [
		{ name: 'id', 			type: 'int' }, 
		{ name: 'name', 		type: 'string' },
		{ name: 'email', 		type: 'string' },
		{ name: 'username', 	type: 'string' },
		{ name: 'group_id', 	type: 'int' },
		{ name: 'group_name', 	type: 'string' },
		{ name: 'password', 	type: 'string' },
		{ name: 'created', 		type: 'date' },
		{ name: 'modified', 	type: 'date' }]
	});

cakeXDev.storage.add({
	name: 'group',
	controller: 'groups',
	title: 'Grupo',
	items: [
		{ name: 'id', 		type: 'int' }, 
		{ name: 'name', 	type: 'string' },
		{ name: 'created', 	type: 'string' },
		{ name: 'modified', type: 'string' }]
	});

cakeXDev.add(cfgUser);
//cakeXDev.add(cfgGroup);

cakeXDev.run();